import axios from '../../axios'
//一级路径
const ORDER_URL = '/order'
const orderApi = {
    //获取销售员的订单
    getSalesOrder(data) {
        return axios({
            url: ORDER_URL + '/getSalesOrder',
            method: 'post',
            data
        })
    },
    //删除订单
    deletOrder(data) {
        return axios({
            url: ORDER_URL + '/deletOrder',
            method: 'post',
            data
        })
    },
    //获取一个订单
    getOrder(data){
        return axios({
            url: ORDER_URL + '/getOrder',
            method: 'post',
            data
        })
    },
    //修改订单
    updateOrderSuccess(data){
        return axios({
            url: ORDER_URL + '/updateOrderSuccess',
            method: 'post',
            data
        })
    }
}

export default orderApi;